<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    <link href="/wenda/styles/base.css" rel="stylesheet" type="text/css">
    <link href="/wenda/styles/public.css" rel="stylesheet" type="text/css">
    <link href="/wenda/js/ueditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
    <link href="/wenda/js/datepicker/datepicker.css" rel="stylesheet">
    <script type="text/javascript" src="/wenda/js/jquery.js"></script>
    <script type="text/javascript" src="/js/jquery/jquery.js"></script>
    <script type="text/javascript" src="/js/plugins/jquery-form/jquery.form.js"></script>
    <script type="text/javascript" charset="utf-8" src="/wenda/js/ueditor/umeditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/wenda/js/ueditor/umeditor.min.js"></script>
    <script type="text/javascript" src="/wenda/js/ueditor/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript" src="/wenda/js/common.js"></script>
    <script type="text/javascript" src="/wenda/js/public.js"></script>
    <script>
        $(function () {
            /*$('#title').onchange(function () {
                if(document.getElementById(this).value.length>10){
                    $('#err-tips').val("");
                }
            })*/
            $('.qt-post-btn').click(function () {
                $('#question').ajaxSubmit(function (data) {
                    if(data.success){
                        window.location.href="/wenda";
                    }else{
                        alert("请登录");
                    }
                })
            })
        })
    </script>
</head>

<body>
<div class="lww_header">
    <div class="header_wrap">
        <div class="header_logo">
            <a href="javascript:;" class="lww_logo"></a>
        </div>
        <ul class="header_nav">
            <li><a href="/">首页</a></li>
            <li><a href="./destination.html">目的地</a></li>
            <li><a href="./gonglve.html">旅游攻略</a></li>
            <li><a href="javascript:;">去旅行<i class="icon_caret_down"></i></a></li>
            <li><a href="javascript:;">游记</a></li>
            <li><a href="javascript:;">酒店</a></li>
            <li><a href="javascript:;">社区<i class="icon_caret_down"></i></a></li>
            <li class="head-nav-community _j_head_nav_community head-nav-dropdown _j_shequ_nav_show" id="_j_nav_community" data-cs-p="community" data-tab-item="社区">
                <#--<div class="drop-toggle"><span>社区<i class="icon-caret-down"></i></span></div>
                <!-- 社区下拉面板 begin &ndash;&gt;
                <div class="dropdown-panel dropdown-community hide _j_shequ_top no-image" id="_j_community_panel" data-cs-t="community_nav">
                    <div class="panel-wrapper">
                        <ul class="nav-list clearfix">
                            <li class="h"><a href="https://www.mafengwo.cn/wenda/" target="_blank" title="问答" data-cs-p="wenda">问答<i class="i-hot">hot</i></a></li>
                            <li><a href="https://www.mafengwo.cn/mall/things.php" target="_blank" title="马蜂窝周边" data-cs-p="things">马蜂窝周边<i class="i-new">new</i></a></li>
                            <li><a href="https://www.mafengwo.cn/club/" target="_blank" title="蜂首俱乐部" data-cs-p="club">蜂首俱乐部</a></li>
                            <li><a href="https://www.mafengwo.cn/together/" target="_blank" title="结伴" data-cs-p="together">结伴</a></li>
                        </ul>
                        <ul class="nav-list-sub clearfix">

                            <li><a href="https://www.mafengwo.cn/group/" target="_blank" title="马蜂窝旅行家" data-cs-p="group">小组论坛</a></li>
                            <li><a href="https://www.mafengwo.cn/rudder/" target="_blank" title="分舵同城" data-cs-p="rudder">分舵同城</a></li>
                            <li><a href="https://www.mafengwo.cn/auction/" target="_blank" title="马蜂窝拍卖行" data-cs-p="paimai">马蜂窝拍卖行</a></li>

                            <!--<li><a href="https://www.mafengwo.cn/postal/" target="_blank" title="游记纪念工厂" data-cs-p="postal">游记纪念工厂</a></li>&ndash;&gt;
                            <li><a href="https://www.mafengwo.cn/photo_pk/prev.php" target="_blank" title="照片PK" data-cs-p="photo_pk">照片PK</a></li>
                            <li><a href="https://www.mafengwo.cn/focus/" target="_blank" title="真人兽" data-cs-p="focus">真人兽</a></li>
                            <li><a href="https://www.mafengwo.cn/mall/virtual_goods.php" target="_blank" title="道具商店" data-cs-p="virtual">道具商店</a></li>
                        </ul>
                    </div>
                </div>-->

                <!-- 社区下拉面板 end -->
            </li>
        </ul>
        <div class="header_search">
            <input type="text" />
            <a class="icon_search"></a>
        </div>
        <div class="login_info">
            <div class="head_user">
                <a href="javascript:;">
                    <img src="./images/user.png" />
                    <i class="icon_caret_down"></i>
                </a>
            </div>
            <div class="header_msg">
                消息<i class="icon_caret_down"></i>
            </div>
            <div class="header_daka">
                <a href="javascript:;">打卡</a>
            </div>
        </div>
    </div>
    <div class="shadow"></div>
</div>
<div class="wrapper">
    <div class="qt-container clearfix">
        <div class="qt-main">
            <div class="crumb">
                <a href="/wenda/">旅游问答</a> &gt; <span>我要提问</span>
            </div>
        <form id="question" action="/wenda/questionAdd" method="post">
            <input type="hidden" name="userId" id="userId" value="${(user.id)!}">
            <input type="hidden" name="username" id="username" value="${(user.nickname)!}">
            <input type="hidden" name="level" id="level" value="${(user.level)!}">
            <input type="hidden" name="headUrl" id="headUrl" value="${(user.headImgUrl)!}">
            <input type="hidden" id="destId" name="dest.id" value="-1">

            <div class="qt-tit">
                <h5>问题标题</h5>
                <div class="qt-con">
                    <input type="text" name="title" id="title" placeholder="标题不小于10字哦" class="_j_title">
                    <span class="count"><span class="_j_title_num">0</span>/80 字</span>
                    <span class="_j_min_num hide">10</span>
                    <span class="error err-tips _j_title_error" id="err-tips">标题不能少于10字</span>
                </div>
            </div>
            <div class="qt-details">
                <h5><a title="添加问答内容" class="icon active" id="_j_show_content"></a>问题详细内容</h5>
                <script id="editor" name="content" type="text/plain" style="width:100%;height:500px;"></script>
                </div>
        </form>
                <div class="publish_question">
                        <a class="qt-post-btn _j_publish" title="发布问题">发布问题</a>
                        </div>
                        </div>
                        <div class="qt-sider">
                        <div class="qts-tit">提问的正确姿势</div>
                        <div class="qts-con">
                        <p>1.问题要【具体】【真实】【诚恳】，问题较多，需全面阐述时，可以添加问题补充。结伴/交易/与旅行无关的提问将被删除。</p>
                <p>2.给问题添加目的地，并打上正确的标签将有助于更快地获得回答。</p>
                </div>
                </div>
                </div>
                </div>
                </body>

                </html>